// statistics.cpp: implementation of the statistics class.
//
//////////////////////////////////////////////////////////////////////

#include "statistics.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

statistics::statistics()
{

}

statistics::~statistics()
{

}

statistics::statistics( int nbTests) {
	_nbTests = nbTests;
	for ( int i = 0; i < nbTests; i ++ ) {
		_tests.push_back(i);
		_nehmakespans.push_back(0);
		_makespans.push_back(0);
		_lowerbounds.push_back(0);
		_nehtimes.push_back(0);
	    _times.push_back(0);
		_maxWait.push_back(0);
		_nehmaxWait.push_back(0);

	}	
}

statistics::setLowerbound( int test, int lowerbound) {
	_lowerbounds[test]	= lowerbound; 
}

statistics::setnehMakespan( int test, int nehmakespan) {
	_nehmakespans[test] = nehmakespan;
}

statistics::setMakespan( int test, int makespan) {
	_makespans[test] = makespan;
}

statistics::getLowerbound(int test) {
	return _lowerbounds[test];
}


statistics::getnehMakespan(int test) {
	return _nehmakespans[test];
}

statistics::getMakespan(int test) {
	return _makespans[test];
}

statistics::setnehTimes(int test, double time) {
	_nehtimes[test] = time;
}

double statistics::getnehTimes(int test) {
	return _nehtimes[test];
}

statistics::setTimes(int test, double time) {
	_times[test] = time;
}

double statistics::getTimes(int test) {
	return _times[test];
}

statistics::setMaxWait( int test, int maxWait) {
	_maxWait [ test] = maxWait;
}

statistics::setnehMaxWait( int test, int nehmaxWait) {
	_nehmaxWait [ test] = nehmaxWait;
}

statistics::getMaxWait( int test) {
	return _maxWait [ test];
}

statistics::getnehMaxWait( int test) {
	return _nehmaxWait [ test];
}
